package com.jdj.framework.config.autoconfigure.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 框架配置，因为ConfigurationProperties取消了location的属性，所以需要用@Component注册
 * @author caijinbang
 * @date 2019-04-13 16:15
 */
@Component
@ConfigurationProperties(prefix = FrameworkCoreProperties.PREFIX)
public class FrameworkCoreProperties {
    static final String PREFIX = "framework.core";

    private Boolean checkApplicationTypeForService = true;

    private Boolean checkApplicationTypeForWeb = true;

    public Boolean getCheckApplicationTypeForService() {
        return checkApplicationTypeForService;
    }

    public void setCheckApplicationTypeForService(Boolean checkApplicationTypeForService) {
        this.checkApplicationTypeForService = checkApplicationTypeForService;
    }

    public Boolean getCheckApplicationTypeForWeb() {
        return checkApplicationTypeForWeb;
    }

    public void setCheckApplicationTypeForWeb(Boolean checkApplicationTypeForWeb) {
        this.checkApplicationTypeForWeb = checkApplicationTypeForWeb;
    }
}
